package chapterTwo.nestedClass;



class Number {
		int i;
	}
/*	public class Assignment {
		public static void main(String[] args) {
			Number n1 = new Number();
			Number n2 = new Number();
			n1.i = 9;
			n2.i = 47;
		System.out.println("1: n1.i: " + n1.i +", n2.i: " + n2.i);
			n1 = n2;
		System.out.println("2: n1.i: " + n1.i +", n2.i: " + n2.i);
			n1.i = 27;
		System.out.println("3: n1.i: " + n1.i +", n2.i: " + n2.i);
		n2.i = 33;
		System.out.println("3: n1.i: " + n1.i +", n2.i: " + n2.i);
		}
	} 
	*/
	
	
	
	
	class Letter {
		char c;
	}
	  class PassObject {
		static void f(Letter y) {
		y.c = 'z';
	}
	public static void main(String[] args) {
		Letter x = new Letter();
		x.c = 'a';
		System.out.println("1: x.c: " + x.c);
		f(x);
		System.out.println("2: x.c: " + x.c);
	}
} 

